package com.ruoyi.odorservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.odorservice.entity.Sample;
import com.ruoyi.odorservice.entity.model.SiteMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SampleMapper extends BaseMapper<Sample> {
    /**
     * 查询点位物质 求平均
     * @param siteNames
     * @return
     */
    List<SiteMaterial> getSiteMaterials(@Param("siteNames") List<String> siteNames);
    /**
     * 通过点位查询某企业物质
     * @param ids
     * @return
     */
    List<SiteMaterial> getMaterialsBySites(@Param("ids") List<Integer> ids);
}
